js get file from input

51

How to get input file using js -

const selectedFile = document.getElementById('input').files[0];

Comments

Submit
0 Comments